<div class="nav-wrap">
    <nav class="navbar row" role="navigation" >
	    <div class="navbar-left col-md-8">
	    	<a class="navbar-brand" href="/"><img src="<?php xcho(loadSource('/assets/image/web_bottom_logo.png')) ?>" alt=""></a>
	    	<ul class="navbar-nav mr-auto">
	    		<?php $menuIndex = 1;?>
	    		<?php foreach ($menuList as $ik => $iv) { ?>
	    			<?php if($iv['pid'] == 0) { ?>
	    				<li class="nav-item dropdown">
							<a class="nav-link dropdown-toggle" href="#" id="<?php xcho('dropdownMenu'.$menuIndex)?>" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><?php xcho($iv["text"]) ?></a>
							<div class="dropdown-menu" aria-labelledby="<?php xcho('dropdownMenu'.$menuIndex)?>">
								<?php foreach ($menuList as $ikk => $ivv) { ?>
									<?php if($ivv['pid'] == $iv['id']) { ?>
										<a class="dropdown-item" href="<?php xcho($ivv['url']) ?>">
											<?php xcho($ivv["text"]) ?>
										</a>
									<?php } ?>
								<?php } ?>
							</div>
						</li>
					<?php } ?>
	    		<?php $menuIndex += 1;} ?>
			</ul>
	    </div>
	    <div class="navbar-right col-md-4">
	    	<ul class="nav">
                <li>
                    <a href="<?php xcho(url('/user/user/editUserPwd')) ?>"  class="btn btn-sub userupdatepass">修改密码</a>

                </li>
		        <li>
		            <span class="welcome-message">
                        <?php if(!empty(session('user_name'))){ ?>
                            <?php xcho(session('user_name')) ?>您好!
                        <?php }else{ ?>
                            您好!
                        <?php } ?>
                        </span>
		        </li>
		        <li >
		            <a class="count-info"  href="/index/message/index">
		                <i class="fa fa-bell"></i><span id="message" class="label label-primary">0</span>
		            </a>
		        </li>
		        <li >
		            <a href="/ajax/login/logout">
		                <i class="fa fa-sign-out"></i> Log out
		            </a>
		        </li>
		    </ul>
	    </div>
    </nav>
</div>